Skip to content

test(harness): establish shared live E2E kernel for Codex and Claude - #2159

Merged
j5ik2o merged 19 commits into
mainfrom
agent/harness-live-e2e
Aug 4, 2026
Merged

test(harness): establish shared live E2E kernel for Codex and Claude#2159
j5ik2o merged 19 commits into
mainfrom
agent/harness-live-e2e

Conversation

@j5ik2o

@j5ik2o j5ik2o commented Aug 4, 2026

Copy link
Copy Markdown
Member

概要

Issue #1717 の段階展開のうち、共通 live E2E kernel と Codex / Claude Code の各 transport を実装します。

  • opt-in、GitHub Actions hard deny、preflight、child environment allow-listを共通化
  • credential lease、scratch resource、cleanup barrier、atomic ledgerを共通ライフサイクルとして実装
  • Codex exec、Claude print、Claude Agent SDK、Claude TUI adapterを追加
  • fake executableを使うcontract/integration testと、明示opt-inのserial live journeyを追加
  • registry、run ledger、capability matrix、運用runbookを追加
  • 完了したAI-DLC intent、選挙、監査、検証記録を保存

背景

既存の codex-exec-live.ts にはlive検証の安全境界が集約されていましたが、他transportではgate、認証隔離、cleanup、skip reasonが分散していました。本変更ではtransport自体を統一せず、policy/lifecycleだけを共有kernelへ切り出します。

これにより、明示opt-inがない実行やGitHub Actions上の実行をprocess起動前に拒否し、source home・認証設定・ユーザーhooksをchildへ伝播しない契約を各adapterで同じ形に固定できます。

影響

  • live journeyは引き続きローカル専用かつ明示opt-inです。
  • 通常CIでは実モデル・実CLI processを起動しません。
  • cleanupやcredential leakが検出された場合、green receiptとledger追記を抑止します。
  • ハーネス配布面を変更したintentでは、該当adapterのlive journeyとmatrix更新が運用契約になります。

検証

  • bun run build
  • bun run typecheck
  • bun run source-only:check
  • bun run lint(既存のcomplexity警告のみ)
  • live E2E関連12ファイル: 68 pass / 0 fail

残作業

このDraft PRはIssue #1717全体を閉じません。Kimi Code、Kiro CLI/IDE、Cursor、OpenCodeについては、共通policy/lifecycleへの接続または実測に基づく後続Issueへの分離が必要です。

Related to #1717


Note

Low Risk
Changes are documentation and governance metadata under spaces/default/ with no application runtime or auth paths touched; main review cost is volume and consistency of election/re-scan claims (e.g. commit counts, CI evidence), not production breakage.

Overview
This diff persists the audit trail for the 260803-harness-live-e2e intent (Issue #1717 live E2E policy/adapters), not harness TypeScript in the slice shown here.

It introduces amadeus-state.md marking the workflow completed at build-and-test (14 stages done, Construction verified, mirror receipts through workflow-completed).

It adds codekb/.../re-scans/260803-harness-live-e2e.md, grounding design on observed commit 52a082af7 (46 commits from base): per-surface live-gate/credential gaps, recommended common policy/lifecycle vs transport-adapter split, and phased rollout notes aligned with the PR’s kernel direction.

It registers 14 new E-HLE-* elections under spaces/default/elections/ (intent-capture through build-and-test, including units-generation reruns and a follow-up E-HLE-RA13-ZERO after E-HLE-RA13 split). Each package ships ballots, ledgers, tallies, timelines, views, and record.md; almost all outcomes are “0 new project/team rules or sensors”—learnings stay on the intent record. Notable process detail: E-HLE-RES13 went hold → reopen with amended ballots after git ancestry disputes; E-HLE-BT13 / E-HLE-FD13 ballots carry reservations (CI re-run evidence, ADR-009 wording). elections.json lists all new election dirs as recorded.

Reviewed by Cursor Bugbot for commit cd02a55. Configure here.

Summary by CodeRabbit

  • 新機能

    • Codex、Claude print、Claude SDK、Claude TUI向けのローカル限定ライブE2E検証を追加。
    • 認証情報・実行環境・一時領域を分離し、出力制限、タイムアウト、クリーンアップ、漏えい検査を実施。
    • 実行結果を台帳へ記録し、能力マトリクスを生成・検証可能にしました。
  • ドキュメント

    • ライブE2Eの前提条件、実行手順、成功条件、禁止事項、トラブルシューティングを追加。
  • テスト

    • 成功、スキップ、失敗、タイムアウト、クリーンアップ異常などの検証を拡充。

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant